// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import '@/styles/index.css'
import VuePreview from 'vue-preview'
import store from '@/store'
Vue.config.productionTip = false
Vue.use(Mint)
Vue.use(VuePreview)
Vue.filter('filter', function (itmes) {
  let itme = new Date(itmes)
  let y = itme.getFullYear()
  let m = itme.getMonth()
  let d = itme.getDate()
  return y + '/' + m + '/' + d
})
Vue.use(VuePreview, {
  mainClass: 'pswp--minimal--dark',
  barsSize: {top: 0, bottom: 0},
  captionEl: false,
  fullscreenEl: false,
  shareEl: false,
  bgOpacity: 0.85,
  tapToClose: true,
  tapToToggleControls: false
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
